home *** CD-ROM | disk | FTP | other *** search
- If (Session.Property("SKU")="TypeB") Then
- Session.Property("SERIALNUMBER") = "DR12WTX-9999998-YSP"
- Session.Property("TYPEB") = "1"
- End If
-
- '///////////////////////////////////////////////
- Function IsFeatureExists(sFeature)
- On Error Resume Next
-
- Dim objDB: Set objDB = Session.Database
-
- Dim sQuery: sQuery = "SELECT * FROM `Feature` WHERE `Feature`.`Feature` = '" & sFeature & "'"
-
- Dim objView: Set objView = objDB.OpenView(sQuery)
- objView.Execute
-
- Dim objRec: Set objRec = objView.Fetch
-
- If (objRec Is Nothing) Then
- ' not there
- IsFeatureExists = 0
- Else
- ' there
- IsFeatureExists = 1
- End If
-
- End Function